# coding=UTF-8

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import redis
from flask_wtf import CSRFProtect
from flask_session import Session
from config import Config
from config import DevelopementConfig

app = Flask(__name__)
app.config.from_object(DevelopementConfig)
#SQLAlchemy初始化
db = SQLAlchemy(app)
#redis初始化
redis_store = redis.StrictRedis(host=DevelopementConfig.REDIS_HOST,port=DevelopementConfig.REDIS_POST)
#CSRF初始化
csrf = CSRFProtect(app)
#Session初始化
Session(app)